<template>
  <div>
    <el-button @clicK="templateVisible=true">点击</el-button>
    <el-dialog v-model="templateVisible" :show-close="false" width="500">
      <template #header="{ close, titleId, titleClass }">
        <div class="my-header">
          <h4 :id="titleId" :class="titleClass">This is a custom header!</h4>
          <el-button type="danger" @click="close">
            <el-icon class="el-icon--left">
              <CircleCloseFilled />
            </el-icon>
            Close
          </el-button>
        </div>
      </template>
      This is dialog content.
    </el-dialog>
  </div>
</template>

<script setup lang="ts">
import {ref} from 'vue'
const templateVisible=ref(false)


</script>

<style scoped>

</style>